package org.bluedream.comm.base.bill;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.bluedream.comm.base.OrgPageEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName BillHeadEntity
 * @Description TODO
 * @Author foxsand
 * @Data 2021-11-09 11:22
 * @Version
 */
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class BillHeadEntity<T> extends OrgPageEntity<T> {
    private static final long serialVersionUID = 8589580724312175189L;
    protected String billType;
    protected String billNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date checkDate;
    protected String checkBy;
    @TableField(exist = false)
    protected String  geCreateDate;
    @TableField(exist = false)
    protected String  ltCreateDate;
    @TableField(exist = false)
    protected String  geCheckDate;
    @TableField(exist = false)
    protected String  ltCheckDate;
    protected BigDecimal qty;
    protected BigDecimal total;

    public BillHeadEntity(String id){
        this.id = id;
    }

    public BillHeadEntity(long limit , long pageSize){
        super(limit , pageSize);
    }
}
